PictureInPictureHandler

interface PictureInPictureHandler

Represents the base functions required by PlayerView to enable and handle Picture-In-Picture mode.

Do not invoke the functions of the implementing class on your own. PlayerView will handle them (after setting the handler via PlayerView.setPictureInPictureHandler).

Properties

isPictureInPicture
Link copied to clipboard
abstract val isPictureInPicture: Boolean
Whether the view is currently in Picture-In-Picture (PiP) mode.
isPictureInPictureAvailable
Link copied to clipboard
abstract val isPictureInPictureAvailable: Boolean
Whether Picture-In-Picture (PiP) mode is available.

Functions

enterPictureInPicture
Link copied to clipboard
abstract fun enterPictureInPicture()
Puts the view into Picture-In-Picture (PiP) mode.
exitPictureInPicture
Link copied to clipboard
abstract fun exitPictureInPicture()
Pulls the view out of Picture-In-Picture (PiP) mode.